#ifndef TMMEDIAMANGER_H
#define TMMEDIAMANGER_H

#include <QtCore>
#include <QNetworkInterface>

#include "libMediaCapture.h"


class TMMediaManger
{
public:
    TMMediaManger();

    void Init();

    void StartGuester();
    void StopGuester();
    void Destroy();

    QString getHostMacAddress();

    void* m_pPushHandle;
    MediaCaptureVideoInfo m_vInfo;

private:
    void *m_pCapHandle;
    bool m_bStartRec;

    int m_nPlayerChannel;

    unsigned char m_sps[100];
    unsigned char m_pps[100];
    long m_spslen;
    long m_ppslen;

    QString urlRtsp;
    QString strMac;

    QSettings* m_pSettings;
    QTextCodec* m_pCodecAscii;
};

#endif // TMMEDIAMANGER_H
